<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">车辆管理</h1>
</div>
<div class="wrapper-sm" ng-controller="carManagentController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body">
            <label class="control-label pull-left m-t-xs w-xs">车牌号</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_carManagent_carCode" ng-model="queryTerms.carCode" placeholder="请输入车牌号" name="carCode">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">车长</label>
            <div class="col-md-2 form-group">
                <select id="table_carManagent_carLength" name="carLength" class="form-control input-sm" ng-model="queryTerms.carLength" ng-options="x.value as x.text for x in carLengthDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">车型</label>
            <div class="col-md-2 form-group">
                <select id="table_carManagent_carType" name="carType" class="form-control input-sm" ng-model="queryTerms.carType" ng-options="x.value as x.text for x in carTypeDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">驾驶员号码</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_carManagent_driverPhone" ng-model="queryTerms.driverPhone" placeholder="请输入驾驶员号码" name="driverPhone">
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">录入人</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_carManagent_inputPerson" ng-model="queryTerms.inputPerson" placeholder="请输入录入人" name="inputPerson">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">驾驶员姓名</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_carManagent_driver" ng-model="queryTerms.driver" placeholder="请输入驾驶员姓名" name="driver">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">承运类别</label>
            <div class="col-md-2 form-group">
                <select id="table_carManagent_carrierCategory" name="carrierCategory" class="form-control input-sm" ng-model="queryTerms.carrierCategory" ng-options="x.value as x.text for x in carrierCategoryDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">主营线路</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_carManagent_mainRoute" ng-model="queryTerms.mainRoute" placeholder="请输入主营线路" name="mainRoute">
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">启用状态</label>
            <div class="col-md-2 form-group">
                <select id="table_carManagent_isEnabled" name="isEnabled" class="form-control input-sm" ng-model="queryTerms.isEnabled">
                    <option value="">全部</option>
                    <option value="true">启用</option>
                    <option value="false">禁用</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">录入起始时间</label>
            <div class="col-md-2 form-group">
                <div class="input-group input-group-sm date">
                    <input id="startTime" name="startTime" datetimepicker plugintype="datetime" ng-model="queryTerms.startTime" placeholder="录入起始时间" class="form-control" type="text" />
                    <span id="openstartTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">录入结束时间</label>
            <div class="col-md-2 form-group">
                <div class="input-group input-group-sm date">
                    <input id="endTime" name="endTime" datetimepicker plugintype="datetime" ng-model="queryTerms.endTime" placeholder="录入结束时间" class="form-control" type="text" />
                    <span id="openendTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12">
                <button id="table_carManagent_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            车辆列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" ui-grid-pagination ui-grid-exporter ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px; min-height:395px; overflow-y:hidden; min-width:1000px;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>

        </div>
        <div class="panel-body">
            <button id="table_carManagent_add" ui-sref="app.car.carManagent_Add" class="pull-right-xs btn btn-sm btn-info btn-addon "><i class="fa fa-plus"></i>添加</button>
            <!-- <button id="table_carManagent_excel" class="pull-right-xs btn btn-sm btn-success btn-addon" ng-click="exportFunc()"><i class="fa fa-download"></i>导出报表</button> -->
        </div>
    </div>
</div>